/* vue */
import { defineComponent } from "vue";
/* mixin */
import VersionControlBaseMixin from '@src/mixins/versionControlMixin/base';
/* version paas */
import {
  isShowPaasModule
} from '@shb-lib/version'

export default defineComponent({
  name: "version-control-paas-mixin",
  mixins: [VersionControlBaseMixin],
  computed: {
    /** 
     * @description paas 模块 版本控制
    */
    paasVersionControl(): Record<string, boolean> {
      return {
        isShowPaasModule: isShowPaasModule(this._versionControlMap),
      }
    },
    _isShowPaasModule(): boolean {
      return this.paasVersionControl.isShowPaasModule
    }
  }
})
